package com.sdry.web.controller;

import com.sdry.model.lz.Customer;
import com.sdry.model.lz.Warehouse;
import com.sdry.model.zc.ZcGeneralQueryEntity;
import com.sdry.service.cb.ReportFormService;
import com.sdry.service.zc.ZcInventoryManagementService;
import com.sdry.web.controller.cb.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * 
 * @ClassName StockOutController
 * @Description 入库单跳转菜单
 * @Author lz
 * @Date 2019年3月5日 10:39:13
 * @Version 1.0
 */
@Controller
public class Menu extends BaseController {

	@Resource
	private ReportFormService reportFormService;

	@RequestMapping("/bb1")
	public String bb1(Model model){
		//查询所有供应商
		List<Customer> allCustomerList = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",allCustomerList);
		return "/bb/1";
	}

	@RequestMapping("/bb2")
	public String bb2(Model model){
		List<Customer> list = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",list);

		return "/bb/2";
	}

	@RequestMapping("/bb3")
	public String bb3(Model model){
		//查询所有供应商
		List<Customer> allCustomerList = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",allCustomerList);
		return "/bb/jin";
	}


	@RequestMapping("/bb4")
	public String bb4(Model model){
		//查询所有供应商
		List<Customer> allCustomerList = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",allCustomerList);
		return "/bb/chu";
	}
	@RequestMapping("/bb5")
	public String bb5(Model model){
		return "/bb/5";
	}
	@RequestMapping("/bb6")
	public String bb6(Model model){
		//查询所有供应商
		List<Customer> allCustomerList = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",allCustomerList);
		return "/bb/geLi";
	}
	@RequestMapping("/bb7")
	public String bb7(Model model){
		return "/bb/7";
	}
	@RequestMapping("/bb8")
	public String bb8(Model model){
		return "/bb/8";
	}
	@RequestMapping("/bb9")
	public String bb9(Model model){
		//查询所有供应商
		List<Customer> allCustomerList = reportFormService.selectAllCustomerList();
		model.addAttribute("allCustomerList",allCustomerList);
		return "/bb/inventoryManagement4";
	}
}
